/*
 * @Author: 徐建辰
 * @Date: 2022-04-15 14:37:09
 * @LastEditTime: 2022-06-27 15:20:36
 * @LastEditors: xjc
 * @Description: 路由表文件，假设为后台返回数据
 */
export default [
  {
    path: '/dashboard',
    name: 'dashboard',
    component: 'home/dashboard',
    meta: {
      title: '控制台',
      icon: 'el-icon-monitor'
    }
  },
  {
    path: '/face',
    name: 'face',
    component: 'home/face',
    meta: {
      title: '人脸识别',
      icon: 'el-icon-notification'
    }
  },
  {
    path: '/video',
    name: 'video',
    component: 'home/video',
    meta: {
      title: '视频直播',
      icon: 'el-icon-video-camera'
    }
  },
  {
    path: '/file',
    name: 'file',
    component: 'home/file',
    meta: {
      title: '文件操作',
      icon: 'el-icon-files'
    }
  },
  {
    path: '/user',
    name: 'user',
    meta: {
      title: '用户管理',
      icon: 'el-icon-user'
    },
    children: [
      {
        name: 'userlist',
        path: '/userlist',
        component: 'user/list',
        meta: {
          title: '用户列表'
        }
      },
      {
        name: 'center',
        path: '/center',
        component: 'user/center',
        meta: {
          title: '个人中心'
        }
      },
      {
        name: 'account',
        path: '/account',
        component: 'user/account',
        meta: {
          title: '账号信息'
        }
      }
    ]
  },
  {
    path: '/permission',
    name: 'permission',
    meta: {
      title: '权限管理',
      icon: 'el-icon-operation'
    },
    children: [
      {
        name: 'auth',
        path: '/auth',
        component: 'permission/auth',
        meta: {
          title: '权限列表'
        }
      },
      {
        name: 'role',
        path: '/role',
        component: 'permission/role',
        meta: {
          title: '角色列表'
        }
      },
      {
        name: 'menu',
        path: '/menu',
        component: 'permission/menu',
        meta: {
          title: '菜单管理'
        }
      }
    ]
  },
  {
    path: 'charts',
    name: '/charts',
    meta: {
      title: '图表展示',
      icon: 'my-icon-charts'
    },
    children: [
      {
        name: 'bar',
        path: '/bar',
        component: 'charts/bar',
        meta: {
          title: '柱状图'
        }
      },
      {
        name: 'line',
        path: '/line',
        component: 'charts/line',
        meta: {
          title: '折线图'
        }
      },
      {
        name: 'pie',
        path: '/pie',
        component: 'charts/pie',
        meta: {
          title: '饼图'
        }
      },
      {
        name: 'other-charts',
        path: '/other-charts',
        component: 'charts/other',
        meta: {
          title: '其他图表'
        }
      }
    ]
  },
  {
    path: '/component',
    name: 'component',
    meta: {
      title: '组件',
      icon: 'el-icon-grid'
    },
    children: [
      {
        name: 'iconselect',
        path: '/iconselect',
        component: 'component/iconselect',
        meta: {
          title: '图标选择'
        }
      },
      {
        name: 'print',
        path: '/print',
        component: 'component/print',
        meta: {
          title: '打印'
        }
      },
      {
        name: 'watermark',
        path: '/watermark',
        component: 'component/watermark',
        meta: {
          title: '水印'
        }
      },
      {
        name: 'editor',
        path: '/editor',
        component: 'component/editor',
        meta: {
          title: '富文本编辑器'
        }
      },
      {
        name: 'clipboard',
        path: '/clipboard',
        component: 'component/clipboard',
        meta: {
          title: '剪贴板'
        }
      },
      {
        name: 'qrcode',
        path: '/qrcode',
        component: 'component/qrcode',
        meta: {
          title: '二维码'
        }
      },
      {
        name: 'cropper',
        path: '/cropper',
        component: 'component/cropper',
        meta: {
          title: '图像剪裁'
        }
      },
      {
        name: 'contextmenu',
        path: '/contextmenu',
        component: 'component/contextmenu',
        meta: {
          title: '右键菜单'
        }
      },
      {
        name: 'magnifier',
        path: '/magnifier',
        component: 'component/magnifier',
        meta: {
          title: '放大镜'
        }
      }
    ]
  },
  {
    path: 'excel',
    name: 'excel',
    meta: {
      title: 'excel',
      icon: 'my-icon-excel'
    },
    children: [
      {
        name: 'upload-excel',
        path: '/upload-excel',
        component: 'excel/upload-excel',
        meta: {
          title: '上传excel'
        }
      },
      {
        name: 'export-excel',
        path: '/export-excel',
        component: 'excel/export-excel',
        meta: {
          title: '导出excel'
        }
      },
      {
        name: 'select-excel',
        path: '/select-excel',
        component: 'excel/select-excel',
        meta: {
          title: '导出选择项'
        }
      },
      {
        name: 'export-multi-header',
        path: '/export-multi-header',
        component: 'excel/export-multi-header',
        meta: {
          title: '导出多级表头'
        }
      },
    ]
  },
  {
    path: '/other',
    name: 'other',
    meta: {
      title: '其他',
      icon: 'el-icon-more-filled'
    },
    children: [
      {
        name: 'directive',
        path: '/directive',
        component: 'other/directive',
        meta: {
          title: '指令'
        }
      },
      {
        name: '/mask',
        path: '/mask',
        component: 'other/mask',
        meta: {
          title: 'mask效果'
        }
      },
      {
        name: 'loadJS',
        path: '/loadJS',
        component: 'other/loadJS',
        meta: {
          title: '异步加载JS'
        }
      },
      {
        name: 'loadJS',
        path: '/loadJS',
        component: 'other/loadJS',
        meta: {
          title: '外部链接',
          type: 'menu',
          icon: 'el-icon-link'
        },
        children: [
          {
            name: '掘金',
            path: 'https://juejin.cn',
            meta: {
              title: '掘金',
              type: 'link'
            }
          },
          {
            name: '百度',
            path: 'https://baidu.com',
            meta: {
              title: '百度',
              type: 'link'
            }
          }
        ]
      },
      {
        name: 'Iframe',
        path: '/iframe',
        meta: {
          title: 'Iframe',
          type: 'menu',
          icon: 'el-icon-position'
        },
        children: [
          {
            name: 'vue3',
            path: 'https://staging-cn.vuejs.org/guide/introduction.html',
            meta: {
              title: 'VUE 3',
              type: 'iframe'
            }
          },
          {
            name: 'Element Plus',
            path: 'https://element-plus.org/zh-CN',
            meta: {
              title: 'Element Plus',
              type: 'iframe'
            }
          }
        ]
      }
    ]
  },
  {
    path: '/exception',
    name: 'exception',
    meta: {
      title: '错误页',
      icon: 'el-icon-failed'
    },
    children: [
      {
        name: 'notfound',
        path: '/notfound',
        component: 'exception/notfound',
        meta: {
          title: '404'
        }
      },
      {
        name: 'forbidden',
        path: '/forbidden',
        component: 'exception/forbidden',
        meta: {
          title: '403'
        }
      },
      {
        name: 'serviceError',
        path: '/serviceError',
        component: 'exception/serviceError',
        meta: {
          title: '500'
        }
      },
      {
        name: 'badgatewary',
        path: '/badgatewary',
        component: 'exception/badgatewary',
        meta: {
          title: '502'
        }
      }
    ]
  },
  {
    path: '/map',
    name: 'map',
    component: 'exception/map',
    meta: {
      title: '地图',
      icon: 'el-icon-compass',
      fullpage: true,
    }
  },
  {
    path: '/about',
    name: 'about',
    component: 'other/about',
    meta: {
      title: '关于',
      icon: 'el-icon-info-filled',
    }
  }
]
